import { HttpSrv } from 'lfun-bg-comp';

export interface GraduationyeaInfo {
  student_id: string;
  name: string;
  gender: string;
  relationship: string;
  is_guardian: string;
  identification_type: string;
  identification_number: string;
  birthday: string;
  phone_number: string;
  ethnicity: string;
  health_status: string;
  nationality: string;
  political_status: string;
  contact_address: string;
  workplace: string;
  family_member_occupation: string;
}

// 新生家庭信息管理 - 新增
export const create = (params: GraduationyeaInfo) =>
  HttpSrv().post('/school/v1/news-students-family-info/newstudentfamilyinfo', params);

// 删除
export const del = student_family_info_id =>
  HttpSrv().delete('/school/v1/news-students-family-info/newstudentfamilyinfo', { params: { student_family_info_id } });
// 更新
export const update = (params: GraduationyeaInfo) => HttpSrv().put('/school/v1/news-students-family-info/newstudentfamilyinfo', params);
// 届别管理 - 分页查询
export const search = student_id =>
  HttpSrv().get('/school/v1/news-students-family-info/newstudentfamilyinfoall', {
    params: { student_id },
  });
